{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
{%foreach from=$menu item="tmp"%}
<fieldset>
	<legend>
        <input type="checkbox" name="menu_id[]" class="acl" {%if $tmp.menu_id|in_array:$mymenus%} checked=TRUE {%/if%} value="{%$tmp.menu_id%}" id="acl_{%$tmp.menu_id%}"/>{%$tmp.menu_name%}
        
    </legend>
    <ul class="aclList">
        {%foreach from=$menuII[$tmp.menu_id] item="tmpII"%}
             <li style="width:80px; float:left; display:block; overflow:hidden; height:25px;">
               <input type="checkbox" name="menu_id[]" class="acl" {%if $tmpII.menu_id|in_array:$mymenus%} checked=TRUE {%/if%} value="{%$tmpII.menu_id%}" id="acl_{%$tmp.menu_id%}_{%$tmpII.menu_id%}"/>{%$tmpII.menu_name%}
        {%/foreach%} 
        </ul>
</fieldset>
{%/foreach%}
<div style="padding:5px;">
<input type="hidden" value="{%$group_id%}" name="group_id" />
<input type="submit" value="{%$systemLang.distribution%}" name="submit" class="button" />
</div>
</form>